﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Workshop2
{
    class Boat
    {
        private string _type;
        private double _length;

        // Konstruktor
        public Boat(string type, double length)
        {
            _type = type;
            _length = length;
        }
        public Boat(string type)
        {
            this._type = type;
            _length = 0;
        }
        // Getter-metoder
        public string getType()
        {
            return this._type;
        }
        public double getLength()
        {
            return this._length;
        }
        // Setter-metoder
        public void setType(string type)
        {
            this._type = type;
        }
        public void setLength(double length)
        {
            this._length = length;
        }
    }
}
